<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
		<title>人体生物钟</title>
		<link rel="stylesheet" href="css/mui.min.css" />
		<link rel="stylesheet" href="css/app.css" />
	</head>

	<body>
		<header id="header" class="mui-bar mui-bar-nav">
			<a id="btn-reload" class="mui-icon mui-icon-reload mui-pull-left" style="font-size:28px;"></a>
			<h1 class="mui-title">人体生物钟</h1>
			<a id="btn-setting" class="mui-icon mui-icon-contact mui-icon-icon-contact-filled mui-pull-right" style="font-size:28px;"></a>
		</header>

		<script type="text/javascript" src="js/mui.min.js"></script>
		<script type="text/javascript" src="js/app.js"></script>

		<script type="text/javascript" charset="utf-8">
			var pageStyle = {
				top: '45px',
				bottom: 0,
				popGesture: "hide"
			};
			mui.init({
				swipeBack: false,
				subpages: [{
					id: 'psi',
					url: 'pages/psi.html',
					styles: pageStyle
				}],
				preloadPages: [{
					id: 'setting',
					url: 'pages/setting.html'
				}, {
					id: 'help',
					url: 'pages/help.html'
				}, {
					id: 'about',
					url: 'pages/about.html'
				}]
			});
			mui.plusReady(function() {
				plus.navigator.setStatusBarStyle("UIStatusBarStyleBlackOpaque");
				
				document.getElementById("btn-reload").addEventListener('tap', function() {
					plus.webview.getWebviewById("psi").reload();
				});
				document.getElementById('btn-setting').addEventListener('tap', function() {
					plus.webview.getWebviewById("setting").show();
				});
			});
		</script>
	</body>

</html>